package com.rwx.controller;

import com.rwx.service.UserService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class UserController {

    @Reference//dubbo 远程注入
    private UserService userService;


    @RequestMapping("/sayHello")
    public String sayHello(){
        String str = userService.sayHello();

        return str;
    }


}
